runner up score hackerrank solution